<?php
namespace app\common\validate;

use think\Validate;

class AboutUsValidate extends Validate
{
    protected $rule =   [
        'id'                   => 'require|integer',
        'title|标题'           => 'require|length:1,100',
        'video|视频'           => 'require',
        'content|内容'         => 'require',
    ];
    
    protected $scene = [
        /** admin */
        'add'       => ['title', 'video', 'content'],
    ];
}